/**
 * 
 */
package com.school.adminServlet.cmd;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author KK
 *
 */
public class ReportCardManageFormCommand implements AdminCommand {

	/* (non-Javadoc)
	 * @see com.school.adminServlet.cmd.AdminCommand#processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletConfig)
	 */
	public static Logger log = Logger.getLogger(ReportCardManageFormCommand.class.getSimpleName());
	@Override
	public void processRequest(HttpServletRequest req,
			HttpServletResponse resp, ServletConfig config)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		
		req.setAttribute("info", true);
		
		req.setAttribute("contactUs", false);
		req.setAttribute("viewAllRegistered", false);
		req.setAttribute("scheduleExam", false);
		req.setAttribute("publishExamResult", false);
		req.setAttribute("scheduleInterview", false);
		req.setAttribute("publishFinalResult", false);
		
		req.setAttribute("profileManage", false);
		req.setAttribute("admission", false);
		req.setAttribute("examManage", false);
		req.setAttribute("timeTable", false);
		req.setAttribute("createStudentTimeTableForm", false);
		req.setAttribute("createTeacherTimeTableForm", false);
		req.setAttribute("updateStudentTimeTableForm", false);
		req.setAttribute("updateTeacherTimeTableForm", false);
		
		req.setAttribute("classManageForm", false);
		req.setAttribute("displayCourseManageForm", false);
		req.setAttribute("displayGradeManageForm", false);
		req.setAttribute("displayExamManageForm", false);
		req.setAttribute("displayAssignmentManageForm", false);
		req.setAttribute("displayReportCardManageForm", true);
		req.setAttribute("displayFeesManageForm", false);
		req.setAttribute("displayStudentDetailsForm", false);
		req.setAttribute("displayHiringForm", false);
		
		
		
		req.setAttribute("attendance", false);
		req.setAttribute("studentDetails", false);
		req.setAttribute("manageNews", false);
		

		RequestDispatcher dispatcher = req.getRequestDispatcher("/admin_home.jsp");
		dispatcher.forward(req, resp);

	}

}
